package com.project.entity.user;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.dtyunxi.dto.BaseDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@Table(name="B_USER")
@ApiModel(value="用户信息")
public class User extends BaseDto{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3401294409455379601L;
	
	@ApiModelProperty(value="账号")
	@Column
	private String userCode;//账号
	
	@ApiModelProperty(value="名称")
	@Column
	private String name;//名称
	
	@ApiModelProperty(value="手机")
	@Column
	private String mobile;//手机
	
	@ApiModelProperty(value="电子邮箱")
	@Column
	private String email;//电子邮箱
	
	@ApiModelProperty(value="公司")
	@Column
	private String company;//公司
	
	@ApiModelProperty(value="职位")
	@Column
	private String position;//职位
	
	@ApiModelProperty(value="擅长领域")
	@Column
	private String adeptField;//擅长领域
	
	@ApiModelProperty(value="省")
	@Column
	private String province;//省
	
	@ApiModelProperty(value="市")
	@Column
	private String city;//市
	
	@ApiModelProperty(value="区")
	@Column
	private String district;//区
	
	@ApiModelProperty(value="地址")
	@Column
	private String address;//地址
	
	@ApiModelProperty(value="简介")
	@Column
	private String intro;//简介
	
	@ApiModelProperty(value="荣誉")
	@Column
	private String honor;//荣誉
	
	@ApiModelProperty(value="著作")
	@Column
	private String writings;//著作
	
	@ApiModelProperty(value="修改人")
	@Column
	private String updateUser;//修改人
	
	@ApiModelProperty(value="修改时间")
	@Column
	private Date updateTime;//修改时间
	
	@ApiModelProperty(value="微信openid")
	@Column
	private String wechatOpenid;//微信openid
	
	@ApiModelProperty(value="注册时间")
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	private Date registrationTime;//注册时间
	
	@ApiModelProperty(value="最后一次登录时间")
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	private Date lastLoginTime;//最后一次登录时间
	
	@ApiModelProperty(value="//用户类型(Z:注册用户；H:会员)")
	@Column
	private String userType;////用户类型(Z:注册用户；H:会员)
	
	@ApiModelProperty(value="省名称")
	private String provinceName;//省名称
	
	@ApiModelProperty(value="市名称")
	private String cityName;//市名称
	
	@ApiModelProperty(value="区名称")
	private String districtName;//区名称
	
	
	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getDistrictName() {
		return districtName;
	}

	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getAdeptField() {
		return adeptField;
	}

	public void setAdeptField(String adeptField) {
		this.adeptField = adeptField;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getHonor() {
		return honor;
	}

	public void setHonor(String honor) {
		this.honor = honor;
	}

	public String getWritings() {
		return writings;
	}

	public void setWritings(String writings) {
		this.writings = writings;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getWechatOpenid() {
		return wechatOpenid;
	}

	public void setWechatOpenid(String wechatOpenid) {
		this.wechatOpenid = wechatOpenid;
	}

	public Date getRegistrationTime() {
		return registrationTime;
	}

	public void setRegistrationTime(Date registrationTime) {
		this.registrationTime = registrationTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
	

}
